import java.util.ArrayList;
import java.util.Collections;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Test05 {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();
        Collections.addAll(list,"aaa","bbb","ccc","ddd","eee");
        list.stream().map(new Function<String, String>() {
            @Override
            public String apply(String s){
                String result=s.toUpperCase();
                return result;

            }
        }).forEach(System.out::println);
        list.stream().map(String::toUpperCase).forEach(System.out::println);

    }
}
